<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>选择MCC</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="<s:url value="/css/a.css"/>" type="text/css"rel="stylesheet" />
<link href="<s:url value="/css/index.css"/>" type="text/css"rel="stylesheet" />
<script type="text/javascript" src="<s:url value="/js/jquery-1.9.1.js"/>"></script>	
<style>
lable{padding-left:15px; }
</style>
	
 

<script type="text/javascript">
$(document).ready(function(){ 
		$("input[name=multi_sel]").click(function(){
			var a=this.value;
			var b=$("#"+a).val();
			 window.opener.document.getElementById("showMccName").value=b;
			 window.opener.document.getElementById("showMccCode").value=a;
			 window.close(); 
		});
		$("#queryStrBtn").click(function (){
			var str=$("#queryStr").val();
			/* if(str==null || str==""){
				alert("请输入行业信息！");
				return ;
			} */
			$("#queryForm").attr("action","./initMcc.ct?mccName="+$("#queryStr").val());
			$("#queryForm").submit();
		});
		
	})
</script>



</head>

<body>

	<div class="subpage">
		<s:form id="queryForm" action="/chooseBank/queryBankList.ct" method="post" theme="simple">
			 
			 
			<table width="100%"cellpadding="0" cellspacing="0" border="0">

				<tr>
					<td colspan="4" align="center" style="padding-top: 20px;padding-bottom: 20px;">
						检索行业信息：<s:textfield name="searchCondition.bankName1" id="queryStr" maxlength="5" />
						<input id="queryStrBtn" type="button" value=" 查 询 "/>
					</td>
				</tr>
				
			</table>
			<table id="tableList" width="100%" class="table" align="center">
				<thead align="center">
					<tr>
						<td  align="center"><b>选择</b></td>
						<td align="center"><b>所属行业</b></td>
					</tr>
				</thead>
				<tbody>
					<%-- <s:property value="#request.mccList"/> --%>
					<s:iterator value="#request.mccList" status="stat" id="bank">
						<input id="<s:property value="#bank.key"/>" value="<s:property value="#bank.value"/>" type="hidden"/>
							<tr class="<s:if test="#stat.index%2==0">tr_0</s:if>" >
								<td align="center">  <s:radio name="multi_sel" list="#{#bank.key:''}"  theme="simple" /></td>
								<td align="left">  <s:property value="#bank.value"/></td>
								
							</tr>
					</s:iterator>
				</tbody>
			</table>
			 
		</s:form>
	</div>
	<s:if test="#request.info_request !=null">
	<script language="javascript">
	    alert("${request.info_request}");
	    </script>
	</s:if>	
</body>
</html>
